package com.luck.emp.entity;

import java.util.Date;

import com.luck.org.entity.VDepartment;
import com.luck.org.entity.VUser;
import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类 Copyright: Copyright (c) 2011 深圳**科技
 * 
 * @author
 * 
 */
public class EmpTWhCheckM implements java.io.Serializable {
	/**
	 * pk 盘点单编码：PD+4位机构号，2位年份+6位流水号
	 **/
	String checkCode;
	/**
	 * 仓库编码：4位机构号 + 2位机构内编码
	 **/
	String whCode;
	EmpTWarehouse wh;
	/**
	 * 机构主键
	 **/
	Long deptId;
	VDepartment dept;
	/**
	 * 盘点单状态： 1－新建 2－完成盘点动作，未审核 3,审核 通过 ，4 未通过 9撤销
	 **/
	String status;
	/**
	 * 盘点对象： 1－按商品盘点 2－按商品异动盘点
	 **/
	String target;
	/**
	 * 盘点方式： 1－明盘 2－暗盘
	 **/
	String checkType;
	/**
	 * 备注
	 **/
	String note;
	/**
	 * 审核人
	 **/
	VUser auditor;
	/**
	 * 审核时间
	 **/
	Date auditDate;
	/**
	 * 创建人
	 **/
	VUser createUser;
	/**
	 * 创建时间
	 **/
	Date createDate;
	/**
	 * 修改人
	 **/
	VUser modiUser;
	/**
	 * 修改时间
	 **/
	Date modiDate;

	public EmpTWhCheckM() {
	}

	public String getCheckCode() {
		return this.checkCode;
	}

	public void setCheckCode(String checkCode) {
		this.checkCode = checkCode;
	}

	public String getWhCode() {
		return this.whCode;
	}

	public void setWhCode(String whCode) {
		this.whCode = whCode;
	}

	public Long getDeptId() {
		return this.deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getTarget() {
		return this.target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getCheckType() {
		return this.checkType;
	}

	public void setCheckType(String checkType) {
		this.checkType = checkType;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Date getAuditDate() {
		return this.auditDate;
	}

	public void setAuditDate(Date auditDate) {
		this.auditDate = auditDate;
	}


	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModiDate() {
		return this.modiDate;
	}

	public void setModiDate(Date modiDate) {
		this.modiDate = modiDate;
	}

	public EmpTWarehouse getWh() {
		return wh;
	}

	public void setWh(EmpTWarehouse wh) {
		this.wh = wh;
	}

	public VDepartment getDept() {
		return dept;
	}

	public void setDept(VDepartment dept) {
		this.dept = dept;
	}

	public VUser getAuditor() {
		return auditor;
	}

	public void setAuditor(VUser auditor) {
		this.auditor = auditor;
	}

	public VUser getCreateUser() {
		return createUser;
	}

	public void setCreateUser(VUser createUser) {
		this.createUser = createUser;
	}

	public VUser getModiUser() {
		return modiUser;
	}

	public void setModiUser(VUser modiUser) {
		this.modiUser = modiUser;
	}

	public String getAuditDateStr() {
		return DateUtil.dateToString(this.auditDate, DateUtil.patternE);
	}

	public String getCreateDateStr() {
		return DateUtil.dateToString(this.createDate, DateUtil.patternE);
	}

	public String getModiDateStr() {
		return DateUtil.dateToString(this.modiDate, DateUtil.patternE);
	}
	public String getStatusStr(){
		return FormateUtil.getInstance().getNameByCode("p_check_status", this.status);
	}		

}